import Foundation from "./Foundation";
import Gui from "./GuiMgr";
import Pool from "./PoolMgr";
import Res from "./ResMgr";

export default class BaseScene extends Foundation {

    protected onLoad() {
        Res.initScene(this);
        super.onLoad();
    }

    protected onDestroy(): void {
        this.removeAllClock();
        Pool.clearAll();
        Gui.clearRefs();
        Res.releaseManualLoaded();
        super.onDestroy();
    }
}